<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="../js/jquery-1.8.3.js"></script>
    <script src="../js/formatMoney.js"></script>
</head>
<body>
<input type="text" name="bb" onkeyup="format(this)" onblur="overFormat(this)">

<select name="abcd">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="1">3</option>
    <option value="1">4</option>
    <option value="1">5</option>
    <option value="1">6</option>
    <option value="1">7</option>
</select>
</body>
<script>
    var aa = "000026aa哎哎哎a855.556aa8.12aa.345".replace(/[^0-9.]/g,'');
    alert(aa);
    var bb = "000026855.5568.12.345.678".replace(/\.(\d*)\.[\d\D]*/,'.$1');
    alert(bb);
    var cc = "000026855.5568".replace(/^0*(\d+\.\d*)/,'$1');
    alert(cc);
    var dd = "26855.5568".replace(/(\d*\.\d{2})\d*/,'$1');
    alert(dd);
    $(function(){
        $("select[name='abcd']").children().last().attr("selected",true);
    });
</script>
</html>